<?php

/**
 <windDirection id="dd" deg="26.9" name="NE"/>
 <windSpeed id="ff" mps="3.8" beaufort="3" name="Lett bris"/>
 <temperature id="TTT" unit="celcius" value="-5.9"/>
 <pressure id="pr" unit="hPa" value="990.9"/>
 <cloudiness id="NN" percent="100.0"/>
 <fog id="FOG" percent="0.0"/>
 <lowClouds id="LOW" percent="100.0"/>
 <mediumClouds id="MEDIUM" percent="100.0"/>
 <highClouds id="HIGH" percent="0.0"/>

 <precipitation unit="mm" value="0.6"/>

 <symbol id="SNOW" number="13"/>
 */

class forecastModel {

	
	private $windDirection;
	private $windSpeed;
	private $temperature;
	private $pressure;
	private $cloudiness;
	private $fog;
	private $lowClouds;
	private $mediumClouds;
	private $highClouds;
	private $precipitation;
	private $weatherSymbol;	//array
	private $windSpeedTxt;

	public function __construct(){

	}

	public function getWindDir(){ return $this->windDirection; }
	public function getWindSpeed(){ return $this->windSpeed; }
	public function getWindDirTxt(){ return functions::getWindDirTxt($this->windDirection); }
	public function getTemperature(){ return $this->temperature; }
	public function getTemperatureRound(){ return round($this->temperature); }
	public function getPressure(){ return $this->pressure; }
	public function getCloudiness(){ return $this->cloudiness; }
	public function getFog(){ return $this->fog; }
	public function getLowClouds(){ return $this->lowClouds; }
	public function getMediumClouds(){ return $this->mediumClouds; }
	public function getHighClouds(){ return $this->highClouds; }
	public function getPrecipitation(){ return $this->precipitation; }
	public function getWeatherSymbols(){ return $this->weatherSymbol; }
	public function getFirsWeatherSymbol(){ return $this->weatherSymbol[0]; }
	public function getWindSpeedTxt(){ return $this->windSpeedTxt; }

	public function setWindDir($param){ $this->windDirection = $param; }
	public function setWindSpeed($param){ $this->windSpeed = $param; }
	public function setWindSpeedTxt($param){ $this->windSpeedTxt = $param; }
	public function setTemperature($param){ $this->temperature = $param; }
	public function setPressure($param){ $this->pressure = $param; }
	public function setCloudiness($param){ $this->cloudiness = $param; }
	public function setFog($param){ $this->fog = $param; }
	public function setLowClouds($param){ $this->lowClouds = $param; }
	public function setMediumClouds($param){ $this->mediumClouds = $param; }
	public function setHighClouds($param){ $this->highClouds = $param; }
	public function setPrecipitation($param){ $this->precipitation = $param; }
	public function setWeatherSymbol($param){ $this->weatherSymbol[] = $param; }



}
?>